import * as types from '../../action-type'

const homeMutations = {
  [types.SET_CATEGORY](state, payload) { // 修改分类状态
    state.category = payload;
  },
  [types.SET_SLIDES](state, payload) { // 修改sliders轮播
    state.slides = payload;
  }
}

export default homeMutations